package zz.champion_contest07;
public class Q1_User {
	//用户的静态属性：名字、性别、id、年龄
	private String name;
	private String password;
	private String sex;
	private int id;
	private int age;
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	//重写equals()方法
	public boolean equals(Q1_User user){
		if(this.getName().equals(user.getName())&&this.getSex().equals(user.getSex())&&this.getId()==user.getId()&&this.getAge()==user.getAge()){
			return true;
		}else{
			return false;
		}
	}
}
